package com.it.jzs.controller;

import com.it.jzs.service.TypeService;
import com.it.jzs.vo.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("type")
@CrossOrigin
public class TypeController {

    @Resource
    private TypeService typeService;


    @GetMapping("")
    public Result<Object> selectAllType() {
        Result<Object> result = typeService.selectAllType();
        return result;
    }
}
